<include file="Public:header" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
<div id="main" class="main" >
<div class="content">
    <?php $type = empty( $_GET['id'] )?0:$_GET['id']; ?>
  <div class="title">新增租用记录 [ <a href="__URL__/index/type/{$type}">返回列表</a> ]</div>
<div id="result" class="result none"></div>
<form method='post' id="form1" action="__URL__/insert/">
<table cellpadding=3 cellspacing=3 >
<empty name="_REQUEST.id">   
<tr>
	<td class="tRight" >公寓房型：</td>
	<td class="tLeft" >
             <select name="hotel" style="width:200px;" onchange="modifyHouse(this);">
                        <option value="0">--请选择公寓--</option>
                        <volist name="hotel" id="ht">
                            <option value="{$ht.id}">{$ht.name}</option>
                        </volist>
                    </select>
                    {$vo.house_id|makeHouse=2}
        </td>
</tr>
<tr id="room_tr">
    <td class="tRight" ><span class="red">*</span>房间：</td>
	<td class="tLeft" id="room_td">
            <input type="radio" id="room_id">
        </td>
</tr>
<else/>
    <tr id="room_tr">
        <td class="tRight" ><span class="red">*</span>房间：</td>
        <td class="tLeft" id="room_td">
            <input type="hidden" name="room_id" value="{$_REQUEST.id}">
            <input type="hidden" name="jumpUrl" value="__APP__/Room/edit/id/{$_REQUEST.id}">
            {$_REQUEST.id|getModelName="Room","room_no"}
        </td>
    </tr>
</empty>
<tr>
	<td class="tRight" >开始时间：</td>
	<td class="tLeft" >
            <input type="text" id="start_time" name="start_time" value=""  onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
        </td>
</tr>
<tr>
	<td class="tRight" >结束时间：</td>
	<td class="tLeft" >
            <input type="text"  name="end_time" id="end_time" value=""  onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
        </td>
</tr>

<tr>
	<td class="tRight" >备注：</td>
	<td class="tLeft" ><textarea name="remark" rows="5" cols="15" class="large"></textarea>
        </td>
</tr>
<tr>
	<td></td>
	<td class="center"><div style="width:85%;margin:5px">
	<div class="impBtn fLeft"><input type="submit" value="保存"  class="save imgButton"></div>
	<div class="impBtn fLeft"><input type="reset" class="reset imgButton" onclick="javascript:history.back()" value="返回" ></div>
	</div></td>
</tr>
</table>
</form>
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
</div>
</div>
